const state = {
  currentTable: null,
  tables: []
}
const getters = {
  getCurrentTable: state => state.currentTable,
  getTables: state => state.tables
}
const mutations = {
  setCurrentTable: (state, newVal) => {
    state.currentTable = newVal
  },
  setTables: (state, newVal) => {
    state.tables = newVal
  }
}
const actions = {
  setCurrentTable: (context, newVal) => {
    context.commit('setCurrentTable', newVal)
  },
  setTables: (context, newVal) => {
    context.commit('setTables', newVal)
  }
}
export default {
  namespaced: true,
  state,
  actions,
  mutations,
  getters
}
